import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-02-27
 * Time: 16:11
 */
public class Test {
    public static void main(String[] args) {
        Student s = new Student();
        //这里的name被private修饰我们可以换一个方式来获得
        s.setName("张三");
        System.out.println(s.getName());
    }

    /*public static void main5(String[] args) {
        int x = 10;
        System.out.println(x);
    }*/


   /* public static void main4(String[] args) {
        Student student1 = new Student("zhangsan",18,"male");
        Student student2 = new Student("wangwu",17,"female");
        Student student3 = new Student("lisin",16,"male");
        *//*System.out.println(student1.classRoom);
        System.out.println(student2.classRoom);
        System.out.println(student3.classRoom);*//*
        //静态变量也可使用对象来进行访问，但是一般都是直接用类访问的，因为会被idea警告
        //静态成员的方法也时用类访问
        Student.func();
        System.out.println(Student.classRoom);
    }*/

    /*public static void main3(String[] args) {
        Date date = new Date();
        System.out.println(date.getTime());
        //上述的两种写法都是可以滴，只不过这种方法写起来更加简便一点不需要直接把包写出来
    }*/

    /*public static void main2(String[] args) {
        java.util.Date date = new java.util.Date();
        System.out.println(date.getTime());
    }*/

    /*public static void main1(String[] args) {

        *//*Student student = new Student();
        student.name = "zhangsan";*//*

        //当类中的成员变量是用访问修饰限定符的private修饰
        //时只能在同一个包的同一个类中修饰
    }*/
}
